import { requester } from "../request.js"

// 点击立即购买,就调用的接口    /lejuClient/order/addPreOrder
function dingdan(data){
	return requester({
		url:'/lejuClient/order/addPreOrder',
		method:'post',
		data
	})
}

//  根据订单ID获取订单详情  /lejuClient/order/getPreOrderById/
function dingdanMingXi(id){
	return requester({
		url:`/lejuClient/order/getPreOrderById/${id}`
	})
}

// 点击结算调用的接口，跳转到付款方式页面  /lejuClient/order/addConfirmOrder
function addConFirmOrder(data){
	return requester({
		url:'/lejuClient/order/addConfirmOrder',
		method:'post',
		data
	})
}


export{
	dingdan,
	dingdanMingXi,
	addConFirmOrder
}